<!DOCTYPE html>
<html>
    <head>
        <#include "../common.ftl">
    </head>
    <body class="childrenBody">
        <form class="layui-form" style="width:80%;">
            <#--  在隐藏域中获取到用户的Id  -->
            <input type="hidden" name="id" value="${(updateUser.id)!}" />
            <#--  在隐藏域中获取到用户的分组Id  -->
            <input type="hidden" name="roleNameId" value="${(updateUser.groupId)!}" id="roleNameId"/>
            <div class="layui-form-item layui-row layui-col-xs12">
                <label class="layui-form-label">账号</label>
                <div class="layui-input-block">
                    <input type="text" class="layui-input" lay-verify="required" name="userName" id="userName"  value="${(updateUser.userName)!}" placeholder="请输入用户的账号">
                </div>
            </div>

            <div class="layui-form-item layui-row layui-col-xs12">
                <label class="layui-form-label">昵称</label>
                <div class="layui-input-block">
                    <input type="text" class="layui-input"  name="nick" id="nick" value="${(updateUser.nick)!}" placeholder="请输入用户昵称">
                </div>
            </div>

            <div class="layui-form-item layui-row layui-col-xs12">
                <label class="layui-form-label">真实姓名</label>
                <div class="layui-input-block">
                    <input type="text" class="layui-input"  name="trueName" id="trueName" value="${(updateUser.trueName)!}" placeholder="请输入用户的真实姓名">
                </div>
            </div>

            <div class="layui-form-item layui-row layui-col-xs12">
                <label class="layui-form-label">邮箱</label>
                <div class="layui-input-block">
                    <input type="text" class="layui-input" name="email"  lay-verify="required"  value="${(updateUser.email)!}" placeholder="请输入用户邮箱">
                </div>
            </div>

            <div class="layui-form-item layui-row layui-col-xs12">
                <label class="layui-form-label">联系电话</label>
                <div class="layui-input-block">
                    <input type="text" class="layui-input" lay-verify="phone" name="phone" value="${(updateUser.phone)!}" id="phone" placeholder="请输入联系电话">
                </div>
            </div>

            <div class="layui-form-item layui-row layui-col-xs12">
                <label class="layui-form-label">所属组别</label>
                <div class="layui-input-block">
                    <select name="groupId" id="groupId">
                        <option value="">请选择</option>
                    </select>
                </div>
            </div>
            <br/>
            <div class="layui-form-item layui-row layui-col-xs12">
                <div class="layui-input-block">
                    <button class="layui-btn layui-btn-lg layui-btn-normal" lay-submit=""  lay-filter="addOrUpdateUser">确认 </button>
                    <button class="layui-btn layui-btn-lg layui-btn-danger" id="closeBtn">取消</button>
                </div>
            </div>
        </form>
    <script type="text/javascript" src="${path}/js/user/add.update.js"></script>
    </body>
</html>
